package ChainOfResponsibilityPattern;

public class Main {
    public static void main(String[] args) {
        InfoLogger infoLogger = new InfoLogger(1);
        DebugLogger debugLogger = new DebugLogger(2);
        ErrorLogger errorLogger = new ErrorLogger(3);
        infoLogger.setNextLogger(debugLogger);
        debugLogger.setNextLogger(errorLogger);

        infoLogger.loggerMessage(3, "error test");
        infoLogger.loggerMessage(2, "debug test");
        infoLogger.loggerMessage(1, "info test");
    }
}
